<?php


namespace XinYaTable\Forms\Requests;


use Illuminate\Foundation\Http\FormRequest;

class BaseRequest extends FormRequest {
    protected $requestRules = [
    
    ];
    
    protected $requestMessages = [
    
    ];
    
    
    public function authorize() {
        return true;
    }
    
    public function rules() {
        return $this->requestRules[$this->method()] ?? [];
    }
    
    public function messages() {
        return $this->requestMessages;
    }
    
}